package com.newasia.management.converter;


import com.newasia.management.dal.homepage.entitys.PanelContent;
import com.newasia.management.dto.HomepageBanner.BannerDto;
import com.newasia.management.dto.HomepageBanner.ChangeBannerRequest;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;

import java.util.List;

@Mapper(componentModel = "spring")
public interface HomePageConverter {
    @Mappings({})
    BannerDto item2banner(PanelContent panelContent);

    @Mappings({})
    PanelContent request2banner(ChangeBannerRequest request);

    List<BannerDto> item2dto(List<PanelContent> panelContents);


}
